<template>
  <!-- 下拉选择框 -->
  <a-select v-model="formValue">
    <a-option
      v-for="(item, index) in getProps?.selectOptions"
      :key="index"
      :value="item.value"
      >{{ item.label }}</a-option
    >
  </a-select>
</template>
<script setup lang="ts">
import useFormComponent from "@/hooks/useFormComponent";

const getProps = withDefaults(
  defineProps<{
    placeholder?: string;
    textMax: number;
    selectOptions?: any[];
  }>(),
  {}
);
const { formValue } = useFormComponent();
</script>
